﻿<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Jekyll v3.6.0">
<title>进度指示器 &middot; BootstrapVue</title>
<!-- Bootstrap 核心CSS -->
<link href="../../../v4/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- 本文档额外专用css -->
<link href="../../../v4/assets/css/docsearch.min.css" rel="stylesheet">
<link href="../../../v4/assets/css/docs.min.css" rel="stylesheet">
<link href="../../style/bv_path.css" rel="stylesheet">

<!-- Favicons图标定义 -->
<link data-n-head="ssr" rel="manifest" href="../../manifest.json">
<link data-n-head="ssr" rel="shortcut icon" href="../../style/icons/icon_64.png">
<link data-n-head="ssr" rel="apple-touch-icon" href="../../style/icons/icon_512.png" sizes="512x512">

<!-- Meta关键字定义 -->
<meta name="description" content="The most popular HTML, CSS, and JS library in the world.">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">

</head>
<body>
<a id="skippy" class="sr-only sr-only-focusable" href="#content">
<div class="container"> <span class="skiplink-text">跳到主体内容</span> </div>
</a>
<header class="navbar navbar-expand navbar-dark flex-column flex-md-row bd-navbar"> <a class="navbar-brand mr-0 mr-md-2" href="../" aria-label="Bootstrap">
  <svg class="d-block" width="36" height="36" viewbox="0 0 612 612" xmlns="http://www.w3.org/2000/svg" focusable="false">
    <title>Bootstrap</title>
    <path fill="currentColor" d="M510 8a94.3 94.3 0 0 1 94 94v408a94.3 94.3 0 0 1-94 94H102a94.3 94.3 0 0 1-94-94V102a94.3 94.3 0 0 1 94-94h408m0-8H102C45.9 0 0 45.9 0 102v408c0 56.1 45.9 102 102 102h408c56.1 0 102-45.9 102-102V102C612 45.9 566.1 0 510 0z"/>
    <path fill="currentColor" d="M196.77 471.5V154.43h124.15c54.27 0 91 31.64 91 79.1 0 33-24.17 63.72-54.71 69.21v1.76c43.07 5.49 70.75 35.82 70.75 78 0 55.81-40 89-107.45 89zm39.55-180.4h63.28c46.8 0 72.29-18.68 72.29-53 0-31.42-21.53-48.78-60-48.78h-75.57zm78.22 145.46c47.68 0 72.73-19.34 72.73-56s-25.93-55.37-76.46-55.37h-74.49v111.4z"/>
  </svg>
  </a>
  <div class="navbar-nav-scroll">
    <ul class="navbar-nav bd-navbar-nav flex-row">
      <li class="nav-item"><a class="nav-link " href="../">首页</a></li>
      <li class="nav-item"><a class="nav-link" href="index.html">中文手册</a></li>
      <li class="nav-item"><a class="nav-link active" href="../components">组件</a></li>
      <li class="nav-item"><a class="nav-link " href="../directives">指令</a></li>
      <li class="nav-item"><a class="nav-link " href="../reference">参考</a></li>
      <li class="nav-item"><a class="nav-link " href="https://bootstrap-vue.org/play" target="_blank">体验</a></li>
      <li class="nav-item"><a class="nav-link " href="http://code.z01.com/v4"><i class="zi zi_bold" zico="粗"></i> Boostrap</a></li>
      <li class="nav-item"><a class="nav-link" href="http://ico.z01.com" target="_blank" rel="noopener">zico图标系统</a></li>
      <li class="nav-item"><a class="nav-link" href="http://www.z01.com" target="_blank" rel="noopener">Zoomla!逐浪CMS</a></li>
    </ul>
  </div>
  <ul class="navbar-nav flex-row ml-md-auto d-none d-md-flex">
    <li class="nav-item dropdown"> <a class="nav-item nav-link dropdown-toggle mr-md-2" href="#" id="bd-versions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="alse"> v2.12.0 </a>
      <div class="dropdown-menu dropdown-menu-right" aria-labelledby="bd-versions"> 
        <a class="dropdown-item active" href="../../../bootstrap-vue/docs/4.0/">Latest (4.3.x)</a>
        <a class="dropdown-item" href="/Boot/">v3.3.7</a>
        <a class="dropdown-item" href="/Sass/">Sass语言</a>
        <a class="dropdown-item" href="/Emmet/">Emmet语法</a>
        <a class="dropdown-item" href="//www.z01.com/tool/" target="_blank">IIS站长工具</a>
        <a class="dropdown-item" href="//ad.z01.com/" target="_blank">广告源码</a>
        <a class="dropdown-item" href="//v.z01.com/mb/" target="_blank">免费模板</a>
        <a class="dropdown-item" href="//v.z01.com/" target="_blank">H5移动创作</a>
        <a class="dropdown-item" href="//www.z01.com/help/web/3234.shtml" target="_blank">Flexbox布局</a>
		<a class="dropdown-item" href="/boot/font.html" target="_blank">Font Awesome</a>
</div>
    </li>
    <li class="nav-item"> <a class="nav-link p-2" href="//zoomla.github.io/bootstrap4-zhcn-documentation" target="_blank" rel="noopener" aria-label="GitHub">
      <svg class="navbar-nav-svg" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 512 499.36" focusable="false">
        <title>GitHub</title>
        <path d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z" fill="currentColor" fill-rule="evenodd"/>
      </svg>
      </a> </li>
    <li class="nav-item"> <a class="nav-link p-2" href="http://www.z01.com/blog/ren/3214.shtml" target="_blank" rel="noopener" aria-label="Slack">译者说</a></li>
  </ul>
  <a class="btn btn-bd-yellow d-none d-lg-inline-block mb-3 mb-md-0 ml-md-3" href="download.html">下载 Bootstrap</a> </header>

<div class="container-fluid">
  <div class="row flex-xl-nowrap">
    <div class="col-12 col-md-3 col-xl-2 bd-sidebar">
      <form class="bd-search d-flex align-items-center">
        <input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off">
        <button class="btn btn-link bd-search-docs-toggle d-md-none p-0 ml-3" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation">
        <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 30 30" width="30" height="30" focusable="false">
          <title>Menu</title>
          <path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-miterlimit="10" d="M4 7h22M4 15h22M4 23h22"/>
        </svg>
        </button>
      </form>


<nav class="collapse bd-links" id="bd-docs-nav">
<div class=""><a href="../" class="bd-toc-link">首页</a></div>
<div class="bd-toc-item nuxt-link-exact-active "><a href="../../../bootstrap-vue/docs/" class="bd-toc-link  "> 起步 </a>
<ul class="nav bd-sidenav">
</ul>
</div>
<div class="bd-toc-item active"><a href="../../../bootstrap-vue/docs/components/" class="bd-toc-link nuxt-link-exact-active"> 组件 </a>
<ul class="nav bd-sidenav">
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/index.html" class="nav-link"> 组件目录 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/alert.html" class="nav-link"> 警告提示框(Alert) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/badge.html" class="nav-link"> 徽章(Badge) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/badge.html" class="nav-link"> 面包屑导航(Breadcrumb) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/button.html" class="nav-link"> 按钮(Button) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/button-group.html" class="nav-link"> 按钮组(Button Group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/button-toolbar.html" class="nav-link"> 按钮Toolbar(Button Toolbar) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/calendar.html" class="nav-link"> 日历组件(Calendar) <small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/card.html" class="nav-link"> 卡片(Card) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/carousel.html" class="nav-link"> 轮播效果(Carousel) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/collapse.html" class="nav-link"> 折叠面板(Collapse) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/dropdown.html" class="nav-link"> 下拉菜单(Dropdown) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/embed.html" class="nav-link"> 嵌入(Embed) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form.html" class="nav-link"> 表单(Form) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-checkbox.html" class="nav-link"> 表单复选框(Form Checkbox) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-datepicker.html" class="nav-link"> 表单时间选择器(Form Datepicker) <small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-file.html" class="nav-link"> 文件选择(Form File) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-group.html" class="nav-link"> 表单组合(Form Group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-input.html" class="nav-link"> 表单输入框(Form Input) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-radio.html" class="nav-link"> 单选择表单Form Radio </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-select.html" class="nav-link"> 下拉式表单(Form Select) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-spinbutton.html" class="nav-link"> 按钮式表单(Form Spinbuttno) <small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-tags.html" class="nav-link"> Tags表单选择器(Form Tags) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-textarea.html" class="nav-link"> 文本框(Form Textarea) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/form-timepicker.html" class="nav-link"> 表单内时间控件(Form Timepicker) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/image.html" class="nav-link"> 图片(Image) </a></li>

<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/input-group.html" class="nav-link"> 输入框(Input Group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/jumbotron.html" class="nav-link"> Hero大块屏(Jumbotron) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/layout.html" class="nav-link"> 布局与网络Layout and Grid System </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/link.html" class="nav-link"> 链接(Link)</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/list-group.html" class="nav-link"> 列表组(List group) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/media.html" class="nav-link"> 媒体(Media) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/modal.html" class="nav-link"> 弹出模态框(Modal) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/nav.html" class="nav-link"> 导航(Nav) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/navbar.html" class="nav-link"> 导航栏(Navbar) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/pagination.html" class="nav-link"> 分页(Pagination) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/pagination-nav.html" class="nav-link"> 分页导航(Pagination Nav) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/popover.html" class="nav-link"> 指示备注(Popover) </a></li>
<li class="nav-item active"><a href="../../../bootstrap-vue/docs/components/progress.html" class="nav-link"> 进度指示器(Progress) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/spinner.html" class="nav-link"> 旋转指示器(Spinner) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/table.html" class="nav-link"> 表格(Table) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/tabs.html" class="nav-link"> 选项卡(Tabs) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/time.html" class="nav-link"> 时间组件(Time) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/toast.html" class="nav-link"> 冒泡推送(Toasts) </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/components/tooltip.html" class="nav-link"> tip提示组件(Tooltip) </a></li>
</ul>
</div>
<div class="bd-toc-item"><a href="../../../bootstrap-vue/docs/directives/" class="bd-toc-link"> 指令 </a>
<ul class="nav bd-sidenav">
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/index.html" class="nav-link"> 指令目录 </a></li>
<li class="nav-item active"><a href="../../../bootstrap-vue/docs/directives/hover.html" class="nav-link"> Hover 指令<small class="badge text-uppercase badge-success">New</small> </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/popover.html" class="nav-link"> Popover 提示备注</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/scrollspy.html" class="nav-link"> Scrollspy 滚动监听</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/tooltip.html" class="nav-link"> Tooltip 提示指令</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/directives/visible.html" class="nav-link"> Visible 可见性操作<small class="badge text-uppercase badge-success">New</small> </a></li>
</ul>
</div>
<div class="bd-toc-item"><a href="../../../bootstrap-vue/docs/icons.html" class="bd-toc-link"> Icons图标</a>
<ul class="nav bd-sidenav">
</ul>
</div>
  
<div class="bd-toc-item"><a class="bd-toc-link" href="../../../bootstrap-vue/docs/reference">参考</a>
<ul class="nav bd-sidenav">
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference" class="nav-link.html"> 参考目录 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/accessibility.html" class="nav-link">友好访问</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/color-variants.html" class="nav-link">Color颜色变量 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/images.html" class="nav-link"> 组件图像img的src路径解析</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/router-links.html" class="nav-link"> Router路由支持 </a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/size-props.html" class="nav-link">大小规格</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/spacing-classes.html" class="nav-link">间距处理</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/starter-templates.html" class="nav-link">开始模板</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/theming.html" class="nav-link">主题色彩</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/utility-classes.html" class="nav-link">通用Class类</a></li>
<li class="nav-item"><a href="../../../bootstrap-vue/docs/reference/validation.html" class="nav-link">Form表单验证</a></li>
</ul>
</div>
<div class=""><a href="https://bootstrap-vue.org/play" class="bd-toc-link" target="_blank">在线模拟器</a></div>
</nav>
</div>

<div class="d-none d-xl-block col-xl-2 bd-toc">
<ul class="section-nav">
<li class="nav-item toc-entry mb-2"><a target="_self" href="#progress" class="nav-link font-weight-bold"><span>进度指示器(Progress)</span></a></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#value" class="nav-link"><span>值</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#labels" class="nav-link"><span>标签</span></a>
<ul class="nav flex-column">
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#custom-progress-label" class="nav-link"><span>自定义进度标签</span></a></li>
</ul>
</li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#width-and-height" class="nav-link"><span>宽高</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#backgrounds" class="nav-link"><span>背景</span></a>
<ul class="nav flex-column">
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#solid-background-variants" class="nav-link"><span>实体背景变量</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#striped-backgrounds" class="nav-link"><span>条纹背景</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#animated-backgrounds" class="nav-link"><span>动画背景</span></a></li>
</ul>
</li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#multiple-bars" class="nav-link"><span>多条</span></a> <!----></li>
<li class="nav-item toc-entry toc-h2 mb-1"><a target="_self" href="#component-reference" class="nav-link"><span>组件参考</span></a>
<ul class="nav flex-column">
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#comp-ref-b-progress" class="nav-link"><span>&lt;b-progress&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#comp-ref-b-progress-bar" class="nav-link"><span>&lt;b-progress-bar&gt;</span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#importing-individual-components" class="nav-link"><span>导入单个组件/span></a></li>
<li class="nav-item toc-entry toc-h3"><a target="_self" href="#importing-as-a-plugin" class="nav-link"><span>作为Vue.js插件导入</span></a></li>
</ul>
</li>
</ul>
</div>

<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 bd-content" role="main">

<nav data-v-aafc4aea="" aria-label="Breadcrumbs" class="float-left mt-2 mb-0 mb-lg-2">
<ol data-v-aafc4aea="" class="breadcrumb d-inline-flex bg-transparent px-2 py-1 my-0">
<li data-v-aafc4aea="" class="breadcrumb-item"><a data-v-aafc4aea="" href="../../" class="nuxt-link-active" target="_self">首页</a></li>
<li data-v-aafc4aea="" class="breadcrumb-item"><a data-v-aafc4aea="" href="../../../bootstrap-vue/docs" class="nuxt-link-active" target="_self">中文手册</a></li>
<li data-v-aafc4aea="" class="breadcrumb-item"><a data-v-aafc4aea="" href="../../../bootstrap-vue/docs/components/" class="nuxt-link-active" target="_self">组件</a></li>
<li data-v-aafc4aea="" class="breadcrumb-item active"><span data-v-aafc4aea="" aria-current="location">进度指示器</span></li>
</ol>
</nav>
<div class="clearfix d-block"></div>
  <h1 class="bd-title" id="content">进度指示器(Progress)</h1>
  <p class="bd-lead">
    使用我们的自定义进度组件来显示简单或复杂的进度条，并支持水平堆叠的条，动画背景和文本标签。
  </p>
  <script type="text/javascript" src="../../../v4/assets/js/pupCMS.js"></script>










<nav data-v-811345e6="" class="bd-quick-links mb-3 d-xl-none">
<header data-v-811345e6="">
<button data-v-811345e6="" type="button" class="btn font-weight-bold btn-outline-secondary btn-sm btn-block collapsed" aria-controls="bd-quick-links-collapse" aria-expanded="false"><span data-v-811345e6="">Show</span> page table of contents </button>
</header>
<ul data-v-811345e6="" id="bd-quick-links-collapse" class="collapse" style="display: none;">
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#value" class=""><span data-v-811345e6="">Value</span></a> </li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#labels" class=""><span data-v-811345e6="">Labels</span></a>
<ul data-v-811345e6="">
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#custom-progress-label" class=""><span data-v-811345e6="">Custom progress label</span></a></li>
</ul>
</li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#width-and-height" class=""><span data-v-811345e6="">Width and height</span></a> </li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#backgrounds" class=""><span data-v-811345e6="">Backgrounds</span></a>
<ul data-v-811345e6="">
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#solid-background-variants" class=""><span data-v-811345e6="">Solid background variants</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#striped-backgrounds" class=""><span data-v-811345e6="">Striped backgrounds</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#animated-backgrounds" class=""><span data-v-811345e6="">Animated backgrounds</span></a></li>
</ul>
</li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#multiple-bars" class=""><span data-v-811345e6="">Multiple bars</span></a> </li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#component-reference" class=""><span data-v-811345e6="">Component reference</span></a>
<ul data-v-811345e6="">
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#comp-ref-b-progress" class=""><span data-v-811345e6="">&lt;b-progress&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#comp-ref-b-progress-bar" class=""><span data-v-811345e6="">&lt;b-progress-bar&gt;</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#importing-individual-components" class=""><span data-v-811345e6="">Importing individual components</span></a></li>
<li data-v-811345e6=""><a data-v-811345e6="" target="_self" href="#importing-as-a-plugin" class=""><span data-v-811345e6="">Importing as a Vue.js plugin</span></a></li>
</ul>
</li>
</ul>
</nav>
<div translate="translate" class="bd-example vue-example vue-example-b-progress notranslate">
<div>
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="45" class="progress-bar progress-bar-striped progress-bar-animated" style="width: 45%;">45</div>
</div>
<div class="mt-2 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="27" class="progress-bar bg-success" style="width: 27%;">27</div>
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="11" class="progress-bar bg-warning" style="width: 11.25%;">11</div>
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="7" class="progress-bar bg-danger" style="width: 6.75%;">7</div>
</div>
<button type="button" class="btn mt-3 btn-secondary">Click me</button>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">show-progress</span> <span class="hljs-attr">animated</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-2"</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">show-value</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value * (6 / 10)"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"success"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value * (2.5 / 10)"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"warning"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value * (1.5 / 10)"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"danger"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">b-button</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-3"</span> @<span class="hljs-attr">click</span>=<span class="hljs-string">"randomValue"</span>&gt;</span>Click me<span class="hljs-tag">&lt;/<span class="hljs-name">b-button</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">value</span>: <span class="hljs-number">45</span>,
        <span class="hljs-attr">max</span>: <span class="hljs-number">100</span>
      }
    },
    <span class="hljs-attr">methods</span>: {
      randomValue() {
        <span class="hljs-keyword">this</span>.value = <span class="hljs-built_in">Math</span>.random() * <span class="hljs-keyword">this</span>.max
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
<h2 id="value" class="bv-no-focus-ring"><span class="bd-content-title">值<a class="anchorjs-link" href="#value" aria-labelledby="value"></a></span></h2>
<p>
  使用<code translate="no" class="notranslate text-nowrap">max</code>属性（默认值为<code translate="no" class="notranslate text-nowrap">100</code>）设置最大值，
  并通过属性（值<code translate="no" class="notranslate text-nowrap">0</code>）设置当前<code translate="no" class="notranslate text-nowrap">value</code>。
</p>
<p>
  在单个过程中创建多个条形时，将值属性放置在各个 <code translate="no" class="notranslate text-nowrap">&lt;b-progress-bar&gt;</code>子组件上（有关更多详细信息，请参见下面的<strong>"多个条形"</strong>”部分）
</p>
<h2 id="labels" class="bv-no-focus-ring"><span class="bd-content-title">标签<a class="anchorjs-link" href="#labels" aria-labelledby="labels"></a></span></h2>
<p>
  通过为当前绝对值启用<code translate="no" class="notranslate text-nowrap">show-progress</code>（最大值的百分比）或
  <code translate="no" class="notranslate text-nowrap">show-value</code>，将标签添加到进度条。
  您还可以通过<code translate="no" class="notranslate text-nowrap">precision</code>属性设置精度（小数点后的位数）（默认为小数点后的<code translate="no" class="notranslate text-nowrap">0</code>位）。
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-progress-labels notranslate">
<div>
<h5>No label</h5>
<div class="mb-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="50" aria-valuenow="33" class="progress-bar" style="width: 66.6667%;"></div>
</div>
<h5>Value label</h5>
<div class="mb-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="50" aria-valuenow="33" class="progress-bar" style="width: 66.6667%;">33</div>
</div>
<h5>Progress label</h5>
<div class="mb-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="50" aria-valuenow="33" class="progress-bar" style="width: 66.6667%;">67</div>
</div>
<h5>Value label with precision</h5>
<div class="mb-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="50" aria-valuenow="33.33" class="progress-bar" style="width: 66.6667%;">33.33</div>
</div>
<h5>Progress label with precision</h5>
<div class="mb-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="50" aria-valuenow="33.33" class="progress-bar" style="width: 66.6667%;">66.67</div>
</div>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>No label<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>Value label<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">show-value</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>Progress label<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">show-progress</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>Value label with precision<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">:precision</span>=<span class="hljs-string">"2"</span> <span class="hljs-attr">show-value</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>Progress label with precision<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">:precision</span>=<span class="hljs-string">"2"</span> <span class="hljs-attr">show-progress</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">value</span>: <span class="hljs-number">33.333333333</span>,
        <span class="hljs-attr">max</span>: <span class="hljs-number">50</span>
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
<h3 id="custom-progress-label" class="bv-no-focus-ring"><span class="bd-content-title">自定义进度标签<a class="anchorjs-link" href="#custom-progress-label" aria-labelledby="custom-progress-label"></a></span></h3>
<p>
  需要对标签进行更多控制吗？ 通过使用<code translate="no" class="notranslate text-nowrap">&lt;b-progress-bar&gt;</code>子组件中的默认插槽，
  或使用<code translate="no" class="notranslate text-nowrap">&lt;b-progress-bar&gt;</code>上的
  <code translate="no" class="notranslate text-nowrap">label</code>或 
  <code translate="no" class="notranslate text-nowrap">label-html</code>属性，提供您自己的标签：
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-progress-custom-labels notranslate">
<div>
<h5>Custom label via default slot</h5>
<div class="progress" style="height: 2rem;">
<div role="progressbar" aria-valuemin="0" aria-valuemax="50" aria-valuenow="33" class="progress-bar" style="width: 66.6667%;"> Progress: <strong>33.33 / 50</strong></div>
</div>
<h5 class="mt-3">Custom label via property</h5>
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="50" aria-valuenow="33" class="progress-bar" style="width: 66.6667%;"><span>66.67%</span></div>
</div>
<h5 class="mt-3">Custom label via property (HTML support)</h5>
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="50" aria-valuenow="33" class="progress-bar" style="width: 66.6667%;"><span><del>33.333333333</del></span></div>
</div>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>Custom label via default slot<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">height</span>=<span class="hljs-string">"2rem"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span>&gt;</span>
        Progress: <span class="hljs-tag">&lt;<span class="hljs-name">strong</span>&gt;</span>{{ value.toFixed(2) }} / {{ max }}<span class="hljs-tag">&lt;/<span class="hljs-name">strong</span>&gt;</span>
      <span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-3"</span>&gt;</span>Custom label via property<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">:label</span>=<span class="hljs-string">"`${((value / max) * 100).toFixed(2)}%`"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-3"</span>&gt;</span>Custom label via property (HTML support)<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">:label-html</span>=<span class="hljs-string">"`&lt;del&gt;${value}&lt;/del&gt;`"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">value</span>: <span class="hljs-number">33.333333333</span>,
        <span class="hljs-attr">max</span>: <span class="hljs-number">50</span>
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
<p>标签方法的优先顺序（最高优先级）：</p>
<ul>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-progress-bar&gt;</code>的默认插槽</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-progress-bar&gt;</code>的<code translate="no" class="notranslate text-nowrap">label</code>属性</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-progress-bar&gt;</code>的<code translate="no" class="notranslate text-nowrap">show-progress</code>属性</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-progress-bar&gt;</code>的<code translate="no" class="notranslate text-nowrap">show-value</code>属性</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-progress&gt;</code>的<code translate="no" class="notranslate text-nowrap">show-progress</code>属性</li>
<li><code translate="no" class="notranslate text-nowrap">&lt;b-progress&gt;</code>的<code translate="no" class="notranslate text-nowrap">show-value</code>属性</li>
<li>无标签</li>
</ul>
<h2 id="width-and-height" class="bv-no-focus-ring"><span class="bd-content-title">宽高<a class="anchorjs-link" href="#width-and-height" aria-labelledby="width-and-height"></a></span></h2>
<p>
  <code translate="no" class="notranslate text-nowrap">&lt;b-progress&gt;</code>始终使用其父容器扩展到最大。要更改宽度,请将<code translate="no" class="notranslate text-nowrap">&lt;b-progress&gt;</code>放在标准Bootstrap列中，或应用标准Bootstrap宽度类之一。
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-progress-width notranslate">
<div>
<h5>Default width</h5>
<div class="mb-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" class="progress-bar" style="width: 75%;"></div>
</div>
<h5>Custom widths</h5>
<div class="w-75 mb-2 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" class="progress-bar" style="width: 75%;"></div>
</div>
<div class="w-50 mb-2 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" class="progress-bar" style="width: 75%;"></div>
</div>
<div class="w-25 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" class="progress-bar" style="width: 75%;"></div>
</div>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>Default width<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>Custom widths<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"w-75 mb-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"w-50 mb-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"w-25"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">value</span>: <span class="hljs-number">75</span>
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
<p>
  进度条的高度可以通过<code translate="no" class="notranslate text-nowrap">height</code>属性来控制。高度值应为标准CSS尺寸（<code translate="no" class="notranslate text-nowrap">px</code>,
  <code translate="no" class="notranslate text-nowrap">rem</code>,
   <code translate="no" class="notranslate text-nowrap">em</code>等）。默认高度为<code translate="no" class="notranslate text-nowrap">1rem</code>。
  </p>
<div translate="translate" class="bd-example vue-example vue-example-b-progress-height notranslate">
<div>
<h5>默认高度</h5>
<div class="mb-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" class="progress-bar" style="width: 75%;">75</div>
</div>
<h5>自定义高度</h5>
<div class="mb-2 progress" style="height: 2rem;">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" class="progress-bar" style="width: 75%;">75</div>
</div>
<div class="mb-2 progress" style="height: 20px;">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" class="progress-bar" style="width: 75%;">75</div>
</div>
<div class="progress" style="height: 2px;">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" class="progress-bar" style="width: 75%;"></div>
</div>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>Default height<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">show-progress</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">h5</span>&gt;</span>Custom heights<span class="hljs-tag">&lt;/<span class="hljs-name">h5</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">height</span>=<span class="hljs-string">"2rem"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">show-progress</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">height</span>=<span class="hljs-string">"20px"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span> <span class="hljs-attr">show-progress</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">height</span>=<span class="hljs-string">"2px"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"value"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">value</span>: <span class="hljs-number">75</span>
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
<h2 id="backgrounds" class="bv-no-focus-ring"><span class="bd-content-title">背景<a class="anchorjs-link" href="#backgrounds" aria-labelledby="backgrounds"></a></span></h2>
<p>
  使用背景变体更改单个进度条的外观。 默认变量是<code translate="no" class="notranslate text-nowrap">primary</code>。
  </p>
<h3 id="solid-background-variants" class="bv-no-focus-ring"><span class="bd-content-title">实体背景变量<a class="anchorjs-link" href="#solid-background-variants" aria-labelledby="solid-background-variants"></a></span></h3>
<div translate="translate" class="bd-example vue-example vue-example-b-progress-backgrounds notranslate">
<div>
<div class="row mb-1">
<div class="col-sm-2">success:</div>
<div class="col-sm-10 pt-1">
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="71" class="progress-bar bg-success" style="width: 70.8387%;"></div>
</div>
</div>
</div>
<div class="row mb-1">
<div class="col-sm-2">info:</div>
<div class="col-sm-10 pt-1">
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="63" class="progress-bar bg-info" style="width: 63.4291%;"></div>
</div>
</div>
</div>
<div class="row mb-1">
<div class="col-sm-2">warning:</div>
<div class="col-sm-10 pt-1">
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="79" class="progress-bar bg-warning" style="width: 79.3625%;"></div>
</div>
</div>
</div>
<div class="row mb-1">
<div class="col-sm-2">danger:</div>
<div class="col-sm-10 pt-1">
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="35" class="progress-bar bg-danger" style="width: 34.6026%;"></div>
</div>
</div>
</div>
<div class="row mb-1">
<div class="col-sm-2">primary:</div>
<div class="col-sm-10 pt-1">
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="87" class="progress-bar bg-primary" style="width: 87.178%;"></div>
</div>
</div>
</div>
<div class="row mb-1">
<div class="col-sm-2">secondary:</div>
<div class="col-sm-10 pt-1">
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="56" class="progress-bar bg-secondary" style="width: 56.0754%;"></div>
</div>
</div>
</div>
<div class="row mb-1">
<div class="col-sm-2">dark:</div>
<div class="col-sm-10 pt-1">
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="71" class="progress-bar bg-dark" style="width: 71.0751%;"></div>
</div>
</div>
</div>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">v-for</span>=<span class="hljs-string">"bar in bars"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"row mb-1"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"col-sm-2"</span>&gt;</span>{{ bar.variant }}:<span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"col-sm-10 pt-1"</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"bar.value"</span> <span class="hljs-attr">:variant</span>=<span class="hljs-string">"bar.variant"</span> <span class="hljs-attr">:key</span>=<span class="hljs-string">"bar.variant"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
      <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">bars</span>: [
          { <span class="hljs-attr">variant</span>: <span class="hljs-string">'success'</span>, <span class="hljs-attr">value</span>: <span class="hljs-number">75</span> },
          { <span class="hljs-attr">variant</span>: <span class="hljs-string">'info'</span>, <span class="hljs-attr">value</span>: <span class="hljs-number">75</span> },
          { <span class="hljs-attr">variant</span>: <span class="hljs-string">'warning'</span>, <span class="hljs-attr">value</span>: <span class="hljs-number">75</span> },
          { <span class="hljs-attr">variant</span>: <span class="hljs-string">'danger'</span>, <span class="hljs-attr">value</span>: <span class="hljs-number">75</span> },
          { <span class="hljs-attr">variant</span>: <span class="hljs-string">'primary'</span>, <span class="hljs-attr">value</span>: <span class="hljs-number">75</span> },
          { <span class="hljs-attr">variant</span>: <span class="hljs-string">'secondary'</span>, <span class="hljs-attr">value</span>: <span class="hljs-number">75</span> },
          { <span class="hljs-attr">variant</span>: <span class="hljs-string">'dark'</span>, <span class="hljs-attr">value</span>: <span class="hljs-number">75</span> }
        ],
        <span class="hljs-attr">timer</span>: <span class="hljs-literal">null</span>
      }
    },
    mounted() {
      <span class="hljs-keyword">this</span>.timer = setInterval(<span class="hljs-function"><span class="hljs-params">()</span> =&gt;</span> {
        <span class="hljs-keyword">this</span>.bars.forEach(<span class="hljs-function"><span class="hljs-params">bar</span> =&gt;</span> (bar.value = <span class="hljs-number">25</span> + <span class="hljs-built_in">Math</span>.random() * <span class="hljs-number">75</span>))
      }, <span class="hljs-number">2000</span>)
    },
    beforeDestroy() {
      clearInterval(<span class="hljs-keyword">this</span>.timer)
      <span class="hljs-keyword">this</span>.timer = <span class="hljs-literal">null</span>
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
<h3 id="striped-backgrounds" class="bv-no-focus-ring"><span class="bd-content-title">条纹背景<a class="anchorjs-link" href="#striped-backgrounds" aria-labelledby="striped-backgrounds"></a></span></h3>
<p>
  将<code translate="no" class="notranslate text-nowrap">striped</code>设置为通过CSS渐变在进度条的背景变量上应用条纹。
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-progress-striped notranslate">
<div>
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="25" class="progress-bar bg-success progress-bar-striped" style="width: 25%;"></div>
</div>
<div class="mt-2 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" class="progress-bar bg-info progress-bar-striped" style="width: 50%;"></div>
</div>
<div class="mt-2 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" class="progress-bar bg-warning progress-bar-striped" style="width: 75%;"></div>
</div>
<div class="mt-2 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="100" class="progress-bar bg-danger progress-bar-striped" style="width: 100%;"></div>
</div>
<button type="button" class="btn mt-3 btn-secondary"> Remove Striped </button>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"25"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"success"</span> <span class="hljs-attr">:striped</span>=<span class="hljs-string">"striped"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"50"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"info"</span> <span class="hljs-attr">:striped</span>=<span class="hljs-string">"striped"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"75"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"warning"</span> <span class="hljs-attr">:striped</span>=<span class="hljs-string">"striped"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"100"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"danger"</span> <span class="hljs-attr">:striped</span>=<span class="hljs-string">"striped"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">b-button</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"secondary"</span> @<span class="hljs-attr">click</span>=<span class="hljs-string">"striped = !striped"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-3"</span>&gt;</span>
      {{ striped ? 'Remove' : 'Add' }} Striped
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-button</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">striped</span>: <span class="hljs-literal">true</span>
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
<h3 id="animated-backgrounds" class="bv-no-focus-ring"><span class="bd-content-title">动画背景<a class="anchorjs-link" href="#animated-backgrounds" aria-labelledby="animated-backgrounds"></a></span></h3>
<p>
  也可以通过设置<code translate="no" class="notranslate text-nowrap">animated</code>属性设置条纹渐变的动画。
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-progress-animated notranslate">
<div>
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="25" class="progress-bar bg-success progress-bar-striped progress-bar-animated" style="width: 25%;"></div>
</div>
<div class="mt-2 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="50" class="progress-bar bg-info progress-bar-striped progress-bar-animated" style="width: 50%;"></div>
</div>
<div class="mt-2 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="75" class="progress-bar bg-warning progress-bar-striped progress-bar-animated" style="width: 75%;"></div>
</div>
<div class="mt-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="100" class="progress-bar bg-danger progress-bar-striped progress-bar-animated" style="width: 100%;"></div>
</div>
<button type="button" class="btn mt-3 btn-secondary"> Stop Animation </button>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"25"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"success"</span> <span class="hljs-attr">striped</span> <span class="hljs-attr">:animated</span>=<span class="hljs-string">"animate"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"50"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"info"</span> <span class="hljs-attr">striped</span> <span class="hljs-attr">:animated</span>=<span class="hljs-string">"animate"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"75"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"warning"</span> <span class="hljs-attr">striped</span> <span class="hljs-attr">:animated</span>=<span class="hljs-string">"animate"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-2"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"100"</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"danger"</span> <span class="hljs-attr">:animated</span>=<span class="hljs-string">"animate"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-3"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">b-button</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"secondary"</span> @<span class="hljs-attr">click</span>=<span class="hljs-string">"animate = !animate"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mt-3"</span>&gt;</span>
      {{ animate ? 'Stop' : 'Start' }} Animation
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-button</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">animate</span>: <span class="hljs-literal">true</span>
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
<p>注意事项:</p>
<ul>
<li>
  如果<code translate="no" class="notranslate text-nowrap">animated</code>为true，则将自动启用<code translate="no" class="notranslate text-nowrap">条纹</code>。
</li>
<li>动画进度条在Opera12中不起作用，因为它们不支持CSS3动画。</li>
</ul>
<h2 id="multiple-bars" class="bv-no-focus-ring"><span class="bd-content-title">多条<a class="anchorjs-link" href="#multiple-bars" aria-labelledby="multiple-bars"></a></span></h2>
<p>
  在<code translate="no" class="notranslate text-nowrap">&lt;b-progress&gt;</code>组件中包含多个子组件，以构建一组水平堆叠的进度条。
</p>
<div translate="translate" class="bd-example vue-example vue-example-b-progress-multiple notranslate">
<div>
<div class="mb-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="15" class="progress-bar bg-primary" style="width: 15%;"></div>
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="30" class="progress-bar bg-success" style="width: 30%;"></div>
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="20" class="progress-bar bg-info" style="width: 20%;"></div>
</div>
<div class="mb-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="15" class="progress-bar bg-primary" style="width: 15%;">15</div>
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="30" class="progress-bar bg-success" style="width: 30%;">30</div>
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="20" class="progress-bar bg-info" style="width: 20%;">20</div>
</div>
<div class="mb-3 progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="15" class="progress-bar bg-primary progress-bar-striped" style="width: 15%;">15</div>
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="30" class="progress-bar bg-success progress-bar-striped" style="width: 30%;">30</div>
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="20" class="progress-bar bg-info progress-bar-striped" style="width: 20%;">20</div>
</div>
<div class="progress">
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="15" class="progress-bar bg-primary" style="width: 15%;">15</div>
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="30" class="progress-bar bg-success progress-bar-striped progress-bar-animated" style="width: 30%;">30</div>
<div role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="20" class="progress-bar bg-info progress-bar-striped" style="width: 20%;">20</div>
</div>
</div>
</div>
<figure class="highlight"><pre class="hljs html text-monospace p-2 notranslate xml editable" translate="no"><span class="hljs-tag">&lt;<span class="hljs-name">template</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-name">div</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"primary"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[0]"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"success"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[1]"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"info"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[2]"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">show-progress</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"primary"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[0]"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"success"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[1]"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"info"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[2]"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">show-value</span> <span class="hljs-attr">striped</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"mb-3"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"primary"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[0]"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"success"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[1]"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"info"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[2]"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">b-progress</span> <span class="hljs-attr">:max</span>=<span class="hljs-string">"max"</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"primary"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[0]"</span> <span class="hljs-attr">show-progress</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"success"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[1]"</span> <span class="hljs-attr">animated</span> <span class="hljs-attr">show-progress</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
      <span class="hljs-tag">&lt;<span class="hljs-name">b-progress-bar</span> <span class="hljs-attr">variant</span>=<span class="hljs-string">"info"</span> <span class="hljs-attr">:value</span>=<span class="hljs-string">"values[2]"</span> <span class="hljs-attr">striped</span> <span class="hljs-attr">show-progress</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">b-progress-bar</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">b-progress</span>&gt;</span>
  <span class="hljs-tag">&lt;/<span class="hljs-name">div</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-name">template</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-name">script</span>&gt;</span><span class="javascript">
  <span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> {
    data() {
      <span class="hljs-keyword">return</span> {
        <span class="hljs-attr">values</span>: [<span class="hljs-number">15</span>, <span class="hljs-number">30</span>, <span class="hljs-number">20</span>],
        <span class="hljs-attr">max</span>: <span class="hljs-number">100</span>
      }
    }
  }
</span><span class="hljs-tag">&lt;/<span class="hljs-name">script</span>&gt;</span></pre></figure>
<p>
  <code translate="no" class="notranslate text-nowrap">&lt;b-progress-bar&gt;</code>将继承<code translate="no" class="notranslate text-nowrap">&lt;b-progress&gt;</code>父组件的
  大部分属性，但是您可以通过在<code translate="no" class="notranslate text-nowrap">&lt;b-progress-bar&gt;</code>上进行设置来覆盖任何属性。
</p>
<p>注意事项:</p>
<ul>
<li>
  如果指定了<code translate="no" class="notranslate text-nowrap">高度</code>，
  则应始终在 <code translate="no" class="notranslate text-nowrap">&lt;b-progress&gt;</code>组件上设置。
</li>
<li>
  <code translate="no" class="notranslate text-nowrap">&lt;b-progress-bar&gt;</code>不会从
  <code translate="no" class="notranslate text-nowrap">&lt;b-progress&gt;</code>继承
  <code translate="no" class="notranslate text-nowrap">值</code>。</li>
</ul>
<!-- Component reference added automatically from component package.json -->

<h2 id="component-reference" tabindex="-1" class="bv-no-focus-ring"><span class="bd-content-title">组件参考<a href="../../../bootstrap-vue/docs/components/progress#component-reference" class="anchorjs-link" aria-labelledby="component-reference" target="_self"></a></span></h2>
<section data-v-866a22e8="" class="bd-content">
<header data-v-866a22e8="" class="row align-items-center">
<div data-v-866a22e8="" class="col-sm-9">
<h3 data-v-866a22e8="" id="comp-ref-b-progress" tabindex="-1" class="bv-no-focus-ring"><span data-v-866a22e8="" class="bd-content-title"><code data-v-866a22e8="" translate="translate" class="notranslate bigger">&lt;b-progress&gt;</code><a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/progress#comp-ref-b-progress" class="anchorjs-link" aria-labelledby="comp-ref-b-progress" target="_self"></a></span></h3>
</div>
<div data-v-866a22e8="" class="text-sm-right col-sm-3"><a data-v-866a22e8="" rel="noopener" target="_blank" href="https://github.com/bootstrap-vue/bootstrap-vue/tree/dev/src/components/progress/progress.js" class="btn btn-outline-secondary btn-sm"> View source </a></div>
</header>
<ul data-v-866a22e8="" class="component-ref-mini-toc my-3">
<li data-v-866a22e8=""><a data-v-866a22e8="" href="#comp-ref-b-progress-props"><code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-progress&gt;</code> 属性 </a></li>
</ul>
<article data-v-866a22e8="" class="bd-content">
<h4 data-v-866a22e8="" id="comp-ref-b-progress-props" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-866a22e8="" class="bd-content-title"> Properties <a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/progress#comp-ref-b-progress-props" class="anchorjs-link" aria-labelledby="comp-ref-b-progress-props" target="_self"></a></span></h4>
<div data-v-866a22e8="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="4" class="table b-table bv-docs-table table-striped" id="__BVID__1391">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">属性</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">类型</th>
<th role="columnheader" scope="col" aria-colindex="3" class="">默认值</th>
<th role="columnheader" scope="col" aria-colindex="4" class="">描述</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" data-pk="variant" class="" id="__BVID__1391__row_variant">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">variant</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">将一个引导主题颜色变体应用于组件</td>
</tr>
<tr role="row" data-pk="striped" class="" id="__BVID__1391__row_striped">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">striped</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">启用条纹背景</td>
</tr>
<tr role="row" data-pk="animated" class="" id="__BVID__1391__row_animated">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">animated</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">启用动画背景。也会自动设置“条纹”</td>
</tr>
<tr role="row" data-pk="height" class="" id="__BVID__1391__row_height">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">height</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">通过指定CSS高度值（包括单位）覆盖默认高度</td>
</tr>
<tr role="row" data-pk="precision" class="" id="__BVID__1391__row_precision">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">precision</code></td>
<td aria-colindex="2" role="cell" class="">Number or String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">0</code></td>
<td aria-colindex="4" role="cell" class="">小数点后四舍五入到的位数</td>
</tr>
<tr role="row" data-pk="show-progress" class="" id="__BVID__1391__row_show-progress">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">show-progress</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">以百分比形式显示当前进度值</td>
</tr>
<tr role="row" data-pk="show-value" class="" id="__BVID__1391__row_show-value">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">show-value</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">false</code></td>
<td aria-colindex="4" role="cell" class="">显示当前进度值</td>
</tr>
<tr role="row" data-pk="max" class="" id="__BVID__1391__row_max">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">max</code></td>
<td aria-colindex="2" role="cell" class="">Number or String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">100</code></td>
<td aria-colindex="4" role="cell" class="">设置最大值</td>
</tr>
<tr role="row" data-pk="value" class="" id="__BVID__1391__row_value">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">value</code></td>
<td aria-colindex="2" role="cell" class="">Number or String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">0</code></td>
<td aria-colindex="4" role="cell" class="">进度条的当前值</td>
</tr>
</tbody>
</table>
</div>
</article>
</section>
<section data-v-866a22e8="" class="bd-content">
<header data-v-866a22e8="" class="row align-items-center">
<div data-v-866a22e8="" class="col-sm-9">
<h3 data-v-866a22e8="" id="comp-ref-b-progress-bar" tabindex="-1" class="bv-no-focus-ring"><span data-v-866a22e8="" class="bd-content-title"><code data-v-866a22e8="" translate="translate" class="notranslate bigger">&lt;b-progress-bar&gt;</code><a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/progress#comp-ref-b-progress-bar" class="anchorjs-link" aria-labelledby="comp-ref-b-progress-bar" target="_self"></a></span></h3>
</div>
<div data-v-866a22e8="" class="text-sm-right col-sm-3"><a data-v-866a22e8="" rel="noopener" target="_blank" href="https://github.com/bootstrap-vue/bootstrap-vue/tree/dev/src/components/progress/progress-bar.js" class="btn btn-outline-secondary btn-sm"> View source </a></div>
</header>
<ul data-v-866a22e8="" class="component-ref-mini-toc my-3">
<li data-v-866a22e8=""><a data-v-866a22e8="" href="#comp-ref-b-progress-bar-props"><code data-v-866a22e8="" translate="translate" class="notranslate">&lt;b-progress-bar&gt;</code> 属性 </a></li>
</ul>
<article data-v-866a22e8="" class="bd-content">
<h4 data-v-866a22e8="" id="comp-ref-b-progress-bar-props" tabindex="-1" class="bv-no-focus-ring mb-3"><span data-v-866a22e8="" class="bd-content-title"> Properties <a data-v-866a22e8="" href="../../../bootstrap-vue/docs/components/progress#comp-ref-b-progress-bar-props" class="anchorjs-link" aria-labelledby="comp-ref-b-progress-bar-props" target="_self"></a></span></h4>
<div data-v-866a22e8="" class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="4" class="table b-table bv-docs-table table-striped" id="__BVID__1414">
<thead role="rowgroup" class="">
<tr role="row" class="">
<th role="columnheader" scope="col" tabindex="0" aria-colindex="1" aria-sort="none" class="b-table-sort-icon-left">属性<span class="sr-only"> (Click to sort Ascending)</span></th>
<th role="columnheader" scope="col" tabindex="0" aria-colindex="2" class="">类型</th>
<th role="columnheader" scope="col" tabindex="0" aria-colindex="3" class="">默认值</th>
<th role="columnheader" scope="col" tabindex="0" aria-colindex="4" class="">描述</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" data-pk="value" class="" id="__BVID__1414__row_value">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">value</code></td>
<td aria-colindex="2" role="cell" class="">Number or String</td>
<td aria-colindex="3" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="word-wrap-normal notranslate">0</code></td>
<td aria-colindex="4" role="cell" class="">进度条的当前值</td>
</tr>
<tr role="row" data-pk="label" class="" id="__BVID__1414__row_label">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">label</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">文本字符串，用于将标签明确设置为</td>
</tr>
<tr role="row" data-pk="label-html" class="" id="__BVID__1414__row_label-html">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">label-html</code> <span data-v-866a22e8="" class="badge badge-warning">Use with caution</span></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">HTML字符串，用于将标签明确设置为。 谨慎使用</td>
</tr>
<tr role="row" data-pk="max" class="" id="__BVID__1414__row_max">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">max</code></td>
<td aria-colindex="2" role="cell" class="">Number or String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">设定最大值</td>
</tr>
<tr role="row" data-pk="precision" class="" id="__BVID__1414__row_precision">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">precision</code></td>
<td aria-colindex="2" role="cell" class="">Number or String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">小数点后四舍五入的位数</td>
</tr>
<tr role="row" data-pk="variant" class="" id="__BVID__1414__row_variant">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">variant</code></td>
<td aria-colindex="2" role="cell" class="">String</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">将Bootstrap主题颜色变体之一应用于组件</td>
</tr>
<tr role="row" data-pk="striped" class="" id="__BVID__1414__row_striped">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">striped</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">启用条纹背景</td>
</tr>
<tr role="row" data-pk="animated" class="" id="__BVID__1414__row_animated">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">animated</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">启用动画背景。 同时自动设置“条纹”</td>
</tr>
<tr role="row" data-pk="show-progress" class="" id="__BVID__1414__row_show-progress">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">show-progress</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">以百分比显示当前进度值</td>
</tr>
<tr role="row" data-pk="show-value" class="" id="__BVID__1414__row_show-value">
<td aria-colindex="1" role="cell" class=""><code data-v-866a22e8="" translate="translate" class="text-nowrap notranslate">show-value</code></td>
<td aria-colindex="2" role="cell" class="">Boolean</td>
<td aria-colindex="3" role="cell" class=""></td>
<td aria-colindex="4" role="cell" class="">显示当前进度值</td>
</tr>
</tbody>
</table>
</div>
<div data-v-866a22e8="" class="alert alert-warning">
<p data-v-866a22e8="" class="mb-0 small"><strong data-v-866a22e8="">警告:</strong> 
  当传递原始用户提供的值时，支持HTML字符串（<code data-v-866a22e8="" translate="translate" class="notranslate">*-html</code>）的属性可能容易
  受到<a data-v-866a22e8="" rel="noopener" target="_blank" href="https://en.wikipedia.org/wiki/Cross-site_scripting" class="alert-link"> 跨站点脚本（XSS）攻击 </a>。
  必须先正确<a data-v-866a22e8="" rel="noopener" target="_blank" href="https://en.wikipedia.org/wiki/HTML_sanitization" class="alert-link">清理</a> 用户输入！
  </p>
</div>
</article>
<h3 id="importing-individual-components" tabindex="-1" class="bv-no-focus-ring"><span class="bd-content-title">导入单个组件<a href="../../../bootstrap-vue/docs/components/progress#importing-individual-components" class="anchorjs-link" aria-labelledby="importing-individual-components" target="_self"></a></span></h3>
<p>可以通过以下命名导出将各个组件导入到项目中：</p>
<div class="table-responsive-sm">
<table role="table" aria-busy="false" aria-colcount="3" class="table b-table bv-docs-table table-striped" id="__BVID__1437">
<thead role="rowgroup" class="thead-default">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">组成部分</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">命名导出</th>
<th role="columnheader" scope="col" aria-colindex="3" class="">导入路径</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">&lt;b-progress&gt;</code></td>
<td aria-colindex="2" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">BProgress</code></td>
<td aria-colindex="3" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">bootstrap-vue</code></td>
</tr>
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">&lt;b-progress-bar&gt;</code></td>
<td aria-colindex="2" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">BProgressBar</code></td>
<td aria-colindex="3" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">bootstrap-vue</code></td>
</tr>
</tbody>
</table>
</div>
<p><strong>例子:</strong></p>
<figure class="highlight"><pre translate="translate" class="hljs language-js text-monospace p-2 notranslate javascript"><span class="hljs-keyword">import</span> { BProgress } <span class="hljs-keyword">from</span> <span class="hljs-string">'bootstrap-vue'</span>
Vue.component(<span class="hljs-string">'b-progress'</span>, BProgress)</pre></figure>
</article>
<article class="bd-content">
<h3 id="importing-as-a-plugin" tabindex="-1" class="bv-no-focus-ring"><span class="bd-content-title">作为Vue.js插件导入<a href="../../../bootstrap-vue/docs/components/progress#importing-as-a-plugin" class="anchorjs-link" aria-labelledby="importing-as-a-plugin" target="_self"></a></span></h3>
<p>这个插件包括上面列出的所有独立组件。插件还包括任何组件别名。</p>
<div class="table-responsive-sm">
<table fileds="namedExport,importPath" role="table" aria-busy="false" aria-colcount="2" class="table b-table bv-docs-table table-striped b-table-caption-top" id="__BVID__1448">
<thead role="rowgroup" class="thead-default">
<tr role="row" class="">
<th role="columnheader" scope="col" aria-colindex="1" class="">命名导出</th>
<th role="columnheader" scope="col" aria-colindex="2" class="">导入路径</th>
</tr>
</thead>
<tbody role="rowgroup">
<tr role="row" class="">
<td aria-colindex="1" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">ProgressPlugin</code></td>
<td aria-colindex="2" role="cell" class=""><code translate="translate" class="text-nowrap notranslate">bootstrap-vue</code></td>
</tr>
</tbody>
</table>
</div>
<p><strong>例子:</strong></p>
<figure class="highlight"><pre translate="translate" class="hljs language-js text-monospace p-2 notranslate javascript"><span class="hljs-keyword">import</span> { ProgressPlugin } <span class="hljs-keyword">from</span> <span class="hljs-string">'bootstrap-vue'</span>
Vue.use(ProgressPlugin)</pre></figure>






</main>
</div>
</div>


<script src="../../../v4/assets/js/vendor/jquery-slim.min.js"></script>
<script src="../../../v4/dist/js/popper.min.js"></script> 
<script src="../../../v4/dist/js/bootstrap.min.js"></script> 
<script src="../../../v4/assets/js/docs.min.js"></script> 
<script src="../../../v4/assets/js/ie-emulation-modes-warning.js"></script> 
<script src="../../../v4/assets/js/docsearch.min.js"></script> 
<script>
  docsearch({
    appId: 'PRR89ISST8',
    apiKey: '95044d57d4d7bb744f322d1f18ed607f',
    indexName: 'z01-bootstrapV4',
    inputSelector: '#search-input',
    handleSelected: function (input, event, suggestion) {
      var url = suggestion.url;
      url = suggestion.isLvl1 ? url.split('#')[0]: url;
      // If it's a title we remove the anchor so it does not jump.
      window.location.href = url;
    },
    transformData: function (hits) {
      return hits.map(function (hit) {
        hit.url = hit.url.replace('https://v4-alpha.getbootstrap.com', '/docs/4.0');
        return hit;
      });
    },
    debug: false // Set debug to true if you want to inspect the dropdown
  });
</script> 
<script>
  Holder.addTheme('gray', {
    bg: '#777',
    fg: 'rgba(255,255,255,.75)',
    font: 'Helvetica',
    fontweight: 'normal'
  });
</script>
</body>
</html>
